import request from "@/utils/request.js";
//易出商品列表
export function GoodsList(params) {
    return request({
      url: "/goods/my",
      method: "get",
      params: params,
    });
  }

//规格编辑和新增 
export function GoodsSave(data) {
    return request({
      url: "/goods_spec/save",
      method: "post",
      data,
    });
  }

//删除规格 
export function GoodsDelete(data) {
    return request({
      url: "/goods_spec/delete",
      method: "post",
      data,
    });
  }

//删除易出商品 
export function GoodsDeleteList(data) {
    return request({
      url: "/goods/delete",
      method: "post",
      data,
    });
  }

//编辑回显 
export function GoodsHxInfo(data) {
    return request({
      url: "/goods/info",
      method: "post",
      data,
    });
  }

//商品编辑与新增 
export function GoodSaveAdd(data) {
  return request({
    url: "/goods/save",
    method: "post",
    data,
  });
}

//易出商品上架和下架 
export function GoodSetIscanceled(data) {
  return request({
    url: "/goods/set_is_canceled",
    method: "post",
    data,
  });
}

